continuity on closed interval